FROM golang:1.13

WORKDIR $GOPATH/src/LinCache

RUN trap "rm server;kill 0" EXIT
RUN go build -o server ./server -port=8001 & ./server -port=8002 & ./server -port=8003 -api=1 &

EXPOSE 9001

ENTRYPOINT ["./LinCache"]
